package com.ftx.controller.test.lock;

/**
 * Created by fengtingxin on 2020/10/18.
 */
public class MyThreadA extends Thread {

    private ReentrantLockTest reentrantLockTest;

    public MyThreadA(ReentrantLockTest reentrantLockTest) {
        this.reentrantLockTest = reentrantLockTest;
    }

    @Override
    public void run() {
        for (int i =0; i < 100; i++){
            reentrantLockTest.set();
        }
    }
}
